namespace KPIS.GERP.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class update0062 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.SysApproveProcessGroup", "Entity_TblName", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "Entity_ColId", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "Entity_ColCode", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "Entity_ColName", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "Entity_ColRecordStatus", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "Entity_ColRecordStatusStatusesUsing", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "Entity_ColAppPrcIdName", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "Entity_ColUrlForEditEntityInGroup", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "EntityGroup_IsUse", c => c.Boolean(nullable: false));
            AddColumn("dbo.SysApproveProcessGroup", "EntityGroup_TblName", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "EntityGroup_ColEntityToGroupId", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "EntityGroup_ColId", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "EntityGroup_ColName", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "EntityGroup_ColCode", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "EntityGroup_ColRecordStatus", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "EntityGroup_ColRecordStatusStatusesUsing", c => c.String());
            DropColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_Table_Name");
            DropColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_Column_Id");
            DropColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_Column_Name");
            DropColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_Column_Code");
            DropColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_Column_RecordStatus");
            DropColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_RecordStatusesUsed");
            DropColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_Column_AppPrcIdName");
            DropColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_UrlForEditEntity");
            DropColumn("dbo.SysApproveProcessGroup", "DataRefInOnShowDataTableName");
            DropColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_ShowData_Table_Name");
            DropColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_ShowData_Column_RefToGroup_Id");
            DropColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_ShowData_Column_Id");
            DropColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_ShowData_Column_Name");
            DropColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_ShowData_Column_Code");
            DropColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_ShowData_Column_RecordStatus");
            DropColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_ShowData_RecordStatusesUsed");
        }
        
        public override void Down()
        {
            AddColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_ShowData_RecordStatusesUsed", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_ShowData_Column_RecordStatus", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_ShowData_Column_Code", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_ShowData_Column_Name", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_ShowData_Column_Id", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_ShowData_Column_RefToGroup_Id", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_ShowData_Table_Name", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "DataRefInOnShowDataTableName", c => c.Boolean(nullable: false));
            AddColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_UrlForEditEntity", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_Column_AppPrcIdName", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_RecordStatusesUsed", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_Column_RecordStatus", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_Column_Code", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_Column_Name", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_Column_Id", c => c.String());
            AddColumn("dbo.SysApproveProcessGroup", "ReferenceToTable_Table_Name", c => c.String());
            DropColumn("dbo.SysApproveProcessGroup", "EntityGroup_ColRecordStatusStatusesUsing");
            DropColumn("dbo.SysApproveProcessGroup", "EntityGroup_ColRecordStatus");
            DropColumn("dbo.SysApproveProcessGroup", "EntityGroup_ColCode");
            DropColumn("dbo.SysApproveProcessGroup", "EntityGroup_ColName");
            DropColumn("dbo.SysApproveProcessGroup", "EntityGroup_ColId");
            DropColumn("dbo.SysApproveProcessGroup", "EntityGroup_ColEntityToGroupId");
            DropColumn("dbo.SysApproveProcessGroup", "EntityGroup_TblName");
            DropColumn("dbo.SysApproveProcessGroup", "EntityGroup_IsUse");
            DropColumn("dbo.SysApproveProcessGroup", "Entity_ColUrlForEditEntityInGroup");
            DropColumn("dbo.SysApproveProcessGroup", "Entity_ColAppPrcIdName");
            DropColumn("dbo.SysApproveProcessGroup", "Entity_ColRecordStatusStatusesUsing");
            DropColumn("dbo.SysApproveProcessGroup", "Entity_ColRecordStatus");
            DropColumn("dbo.SysApproveProcessGroup", "Entity_ColName");
            DropColumn("dbo.SysApproveProcessGroup", "Entity_ColCode");
            DropColumn("dbo.SysApproveProcessGroup", "Entity_ColId");
            DropColumn("dbo.SysApproveProcessGroup", "Entity_TblName");
        }
    }
}
